﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/ContentFrame.master" AutoEventWireup="true" CodeBehind="RoleSetMenuItems.aspx.cs" Inherits="ETD.WebManagement.Admin.Account.RoleSetMenuItems" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        .RadTreeView .rtChkTristate:before {
            display: block;
            font: 22px/1 WebComponentsIcons;
            margin-top: -4px;
            margin-right: 20px;
        }

        .RadTreeView .rtChkTristate {
            margin-right: 10px;
        }
    </style>

    <telerik:RadTreeView RenderMode="Lightweight" runat="server" ID="rTreeView"
        DataFieldID="MenuItemID" DataFieldParentID="ParentMenuItemId"
        CheckBoxes="True" TriStateCheckBoxes="true" CheckChildNodes="true">
        <DataBindings>
            <telerik:RadTreeNodeBinding ValueField="MenuItemID"
                Checked="true" TextField="MenuItemName" CheckedField="IsChecked" Checkable="true"></telerik:RadTreeNodeBinding>
        </DataBindings>
    </telerik:RadTreeView>
    <br />
    <div class="btn-group btn-group-justified text-center">

        <telerik:RadButton ID="btnOk" runat="server" Text="确定" OnClick="btnOk_Click" Width="120px">
        </telerik:RadButton>
        &nbsp; &nbsp;           
                            <telerik:RadButton ID="btnCancel" runat="server" Text="取消" Width="120px"
                                AutoPostBack="false"
                                OnClientClicked="onBtnCancelClick">
                            </telerik:RadButton>
    </div>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">

            var rolesPageUrl = '<%=ResolveClientUrl("/Admin/Account/Roles.aspx") %>';
            function onBtnCancelClick() {
                onCancelButtonConfirm(redirectToRolesPage);
            }
            function redirectToRolesPage(isConfirm) {
                if (isConfirm) {
                    onCloseRadWindowManagerDefaultProcessing(true);
                }
            }
            function saveRoleMenuItemsCallback() {
                redirectToRolesPage(true);
            }
            $(document).ready(function () {

            });



        </script>

    </telerik:RadCodeBlock>
</asp:Content>
